package com.lagou.order.service;

import com.github.pagehelper.PageInfo;
import com.lagou.common.pojo.OrderVo;
import com.lagou.common.pojo.Orders;

import java.util.List;

/**
 * @BelongProject: lagou-parent
 * @author: 胡恺恺
 * @createTime: 2021/1/29  13:54
 * @Description:
 */
public interface OrderService {

    /**
     * 分页多条件查询
     * @param orderVo
     * @return
     */
    PageInfo<Orders> queryByPage(OrderVo orderVo);

    /**
     * 根据id查询订单
     */
    Orders queryById(Integer id);

    /**
     * 根据订单id查询订单商品中间表中关联的商品id
     */
    List<Integer> findGoodsIdByOrderId(Integer id);
}
